package com.java.jiuyang.cloud.feign.controller;

import com.java.jiuyang.cloud.feign.provider.AuthenticationServiceApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: RootController
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2019/11/12 0012 上午 8:41
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2019/11/12 0012        Fu Hao      v1.0.0         创建
 */
@RestController
@RequestMapping("/root")
public class RootController {

    @Autowired
    private AuthenticationServiceApi serviceApi;


    @GetMapping("/hello")
    public String hello(){
        return serviceApi.getUser()+"hello";
    }


}
